package com.jt.service;

import com.jt.mapper.UserMapper;
import com.jt.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.lang.reflect.Array;
import java.util.List;
@Service
public class UserServiceImp implements UserService{
    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> findAll() {
        return userMapper.findAll();
    }

    @Override
    public User findById(Integer id) {
        return userMapper.findById(id);
    }

    @Override
    public User findUserByNA(User user) {
        return userMapper.findUserByNA(user);
    }

    @Override
    public List<User> findUserLike(String name) {
        return userMapper.findUserLike(name);
    }

    @Override
    public List<User> findUserByIds(int[] ids) {
        return userMapper.findUserByIds(ids);
    }

    @Override
    public List<User> findUser2(User user) {
        return userMapper.findUser2(user);
    }

    @Override
    public void updateUser(User user) {
        userMapper.updateUser(user);
    }

    @Override
    public List<User> findByAS(User user) {
        return userMapper.findByAS(user);
    }

    @Override
    public User findByNS(User user) {
        return userMapper.findByNS(user);
    }

    @Override
    public void saveUser(User user) {
        userMapper.saveUser(user);
    }
}
